package com.newer.textdbnotepad.sdk

import com.google.gson.annotations.SerializedName

/**用户信息*/
data class UserInfo(val userKey: String, val userName: String, val notes: List<NoteInfo>)

/**笔记信息*/
data class NoteInfo(val noteKey: String, val noteTitle: String)

/**笔记详情*/
data class NoteDetail(val noteKey: String, val noteTitle: String, val noteContent: String)
/**
 * 创建,更新返回
 * */
data class UpdateResponse(val status: Int, @SerializedName("req_id") val reqId: String, val data: UpdateResponseData?) {
    val isSuccess: Boolean
        get() = status == 1
}

data class UpdateResponseData(val key: String, val url: String)